import request from '@/utils/request'


export function getCityTree(parentId) {
  return request({
    url: `/system/city/cityTree/${parentId}`
  })
}


export function getCityTreeAllByParentId(parentId) {
  return request({
    url: `/system/city/getCityTreeAllByParentId/${parentId}`
  })
}

// 根据子元素获取父元素
export function selectCityListFromChildToParentId() {
  return request({
    url: `/system/city/selectCityListFromChildToParentId`
  })
}


// 根据子元素获取父元素
export function getCityListByUserId() {
  return request({
    url: `/system/city/getCityListByUserId`,
    method: 'post'
  })
}

